/**
 * 
 */
//手机号码正则表达式判断
		function phoneCheck(){
		    var phone = document.getElementById('account1').value;
		    if(phone !=" "){
		    	var val=/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/;
		    	isok = val.test(phone);
		    if(isok){ 
				document.getElementById("judge1").innerHTML="<font color='blue'></font>";
		    	document.getElementById("button1").disabled=false;   		        
		    }else{
				 document.getElementById("judge1").innerHTML="<font color='red'>手机号码格式不正确</font>";
				 document.getElementById("button1").disabled=true;	
		    } 
		    }
		}
		//邮箱正则判断
		function ischeckemail(){
		var email = document.getElementById("mail").value;
		  if(email != "") {
		     var reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
		     isok= reg.test(email );
		       if(isok) {
					document.getElementById("judge2").innerHTML="<font color='blue'></font>";
			    	document.getElementById("button3").disabled=false;
		        }else{
					document.getElementById("judge2").innerHTML="<font color='red'>邮箱格式不正确</font>";    	
					document.getElementById("button3").disabled=true;			       
		        }
		    };
		}
		
		//添加信息处手机号码正则表达式判断
		function addPhoneCheck(){
		    var phone = document.getElementById('phone').value;
		    if(phone !=" "){
		    	var val=/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/;
		    	isok = val.test(phone);
		    if(isok){ 
				document.getElementById("judge1").innerHTML="<font color='blue'></font>";
		    	document.getElementById("sendPhone").disabled=false;   		        
		    }else{
				 document.getElementById("judge1").innerHTML="<font color='red'>手机号码格式不正确</font>";
				 document.getElementById("sendPhone").disabled=true;	
		    } 
		    }
		}		
		//添加信息处邮箱正则判断
		function addMailCheck(){
		var email = document.getElementById("mail").value;
		  if(email != "") {
		     var reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
		     isok= reg.test(email );
		       if(isok) {
					document.getElementById("judge2").innerHTML="<font color='blue'></font>";
			    	document.getElementById("sendMail").disabled=false;
		        }else{
					document.getElementById("judge2").innerHTML="<font color='red'>邮箱格式不正确</font>";    	
					document.getElementById("sendMail").disabled=true;			       
		        }
		    };
		}		